color swatch: Allocate popovers
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 May 2019 18:43:04 +0000 (18:43 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:15 +0000 (20:25 +0000)
gtk/gtkcolorswatch.c

index 7ad2bb094536b3c36c9a45c1cba58f172333e50d..0fa499b429b8afa2ba9f77d77c0ef8977371e6d7 100644 (file)
@@ -39,6 +39,7 @@
 #include "gtkstylecontextprivate.h"
 #include "gtkwidgetprivate.h"
 #include "gtkeventcontrollerkey.h"
+#include "gtknative.h"
 
 #include "a11y/gtkcolorswatchaccessibleprivate.h"
 
@@ -362,6 +363,9 @@ swatch_size_allocate (GtkWidget *widget,
                               0, 0,
                               width, height
                             }, -1);
+
+  if (priv->popover)
+    gtk_native_check_resize (GTK_NATIVE (priv->popover));
 }
 
 static void